]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Hide separators when they aren't separating
authorRay Strode <rstrode@redhat.com>
Fri, 19 Aug 2011 18:42:20 +0000 (14:42 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 28 Aug 2011 16:15:17 +0000 (12:15 -0400)
commitf96b2ee8580b9a72e48ba7c823e2f0b2a2fca574
treef2db32f534d50877ccdbf81c2f91ec30f5a1df87
parentb12967b9300da2bb8837c3ca664168089bdc96eb
popupMenu: Hide separators when they aren't separating

A separator only makes sense if there are items on both
sides of it. There is quite a lot of code written
throughout the shell that manages the process of showing
and hiding separators as the items around those separators
change.

This commit drops all that code in favor of changes to the menu
implementation to dynamically hide or show separators as
appropriate, so the callers don't have to deal with it.

https://bugzilla.gnome.org/show_bug.cgi?id=657082
js/ui/popupMenu.js
js/ui/status/bluetooth.js
js/ui/status/network.js
js/ui/status/power.js
js/ui/status/volume.js
js/ui/statusMenu.js